﻿package com.obas.type
{
	import com.ease.common.enums.OptionalEnum;
	import com.ease.lang.Enum;
	import com.ease.lang.EnumConstants;
	import com.obas.type.ParameterSourceType;

	[Bindable]
	[RemoteClass(alias="com.obas.type.ParameterSourceType")]

	public class ParameterSourceType extends Enum
	{
		/* static init */
		{ initEnum(ParameterSourceType); }

		/* Constants */
		public static const TestcaseScript:ParameterSourceType = new ParameterSourceType("TestcaseScript", 1, "TestcaseScript");
		public static const SystemUsecase:ParameterSourceType = new ParameterSourceType("SystemUsecase", 2, "SystemUsecase");
		public static const SystemScenario:ParameterSourceType = new ParameterSourceType("SystemScenario", 4, "SystemScenario");

		private var _value:int;
		private var _text:String;

		public function ParameterSourceType(name:String=null ,value:int=0 ,text:String=null) {
			super.name = name;
			this._value = value;
			this._text = text;
		}

		public function get value():int  { return this._value; }
		public function get text():String  { return this._text; }

		/* constant query */
		public static function getEnumConstants():Array {
			return Enum.getEnumConstants(ParameterSourceType);
		}

		public static function get(constantName:String, caseSensitive:Boolean = false):ParameterSourceType {
			return ParameterSourceType(Enum.get(ParameterSourceType, constantName, caseSensitive));
		}
	}
}